package com.ltu.service;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.github.binarywang.wxpay.bean.order.WxPayMpOrderResult;
import com.ltu.domain.mp_entity.OrderEntity;
import com.ltu.domain.mp_entity.PayRecord;
import com.ltu.domain.mp_entity.UserEntity;
import com.ltu.domain.mp_entity.customize.CompanyEntity;
import com.ltu.enums.OrderEnums;
import com.ltu.model.request.order.PlaceOrderReq;
import com.ltu.model.response.base.CodeDataResp;
import com.ltu.payment.enums.PayWayDict;


/**
 * <p>
 * 设备续费订单 服务类
 * </p>
 *
 * @author 若尘
 * @since 2022-02-21
 */

public interface OrderService extends BaseTService<OrderEntity> {
	
	/**
	 * 
	 * @param dict
	 * @param dict2  1微信 2支付宝
	 * @param userEntity
	 * @param totalFee
	 * @param sourceIds 报名记录ID
	 * @param scrumIds 球员IDS
	 */
	OrderEntity	createOrder(OrderEnums.OrderSource dict,String productNames,UserEntity userEntity,Integer totalFee,String sourceIds);




	/**
	 * 下单，拉起支付
	 * @param req
	 * @param ip
	 * @return
	 */
	CodeDataResp<JSONObject> placeOrder(OrderEntity order, PayWayDict dict);

}
